/**
 * 程序入口
 * @author
 *
 */
import * as Vue from 'vue';
import { createApp } from 'vue';

// 根组件
import App from './App.vue';

// 初始路由
import router from './router';

// 初始化store
import store from './store';

// 引入全局资源
import plugin from './utils/plugin';

// 注册自定义svg组件
import 'virtual:svg-icons-register';

// 引入动画
import 'animate.css/animate.min.css';

// 全局加载ElementPlus
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';

// ui
import naive from 'naive-ui';

const app = createApp(App);
app.use(store).use(router).use(plugin).use(ElementPlus).use(naive).mount('#app');

// import * as pinia from 'pinia';
// import * as VueRouter from 'vue-router';
// import axios from 'axios';

// window.RDVue = Vue;
// window.RDElementPlus = ElementPlus;
// window.RDPinia = pinia;
// window.RDVueRouter = VueRouter;
// window.RDAxios = axios;

// 挂载到 window
window.RDApp = app;
